package com.jh.loadbalance.client;


import com.jh.loadbalance.client.custom.rest.EnableRestClient;
import com.jh.loadbalance.client.service.rest.SayingRestService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication // 标准 Spring Boot 应用
@EnableDiscoveryClient // 激活服务发现客户端
@EnableScheduling // 激活任务调度
@EnableFeignClients
@EnableRestClient(clients = {SayingRestService.class})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
